//
//  HCNeswDetailViewController.m
//  HappyChildren
//
//  Created by WillyZhao on 2017/2/23.
//  Copyright © 2017年 WillyZhao. All rights reserved.
//

#import "HCNeswDetailViewController.h"

@interface HCNeswDetailViewController ()

@end

@implementation HCNeswDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.textTitle = @"新闻详情";
    
    if (self.parameterObject) {
        UIWebView *web = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, self.centerView.frame.size.width, self.centerView.frame.size.height)];
        [web loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@",self.parameterObject]]]];
        [self.centerView addSubview:web];
    }
    
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
